import Vue from "vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "normalize.css";
import "./assets/index.css";
// 用户收到刷新页面会导致vuex中数据丢失
import loadDataFromLocal from "./global/loadDataFormloacl";

Vue.use(ElementUI, { locale });
Vue.use(loadDataFromLocal);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
